package com.hoshiicloud.user.mapper.rbac;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hoshiicloud.rbac.entity.SysUserRole;
import com.hoshiicloud.rbac.vo.SysUserRoleVO;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 用户角色关联表 Mapper 接口
 * </p>
 *
 * @author Mr.Wu
 * @since 2019-04-18
 */
@Repository
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {
    /*
     * @param queryWrapper
     * @return java.util.List<com.hoshiicloud.sys.permission.entity.vo.SysUserRoleVO>
     * @author: Mr.wu
     * @descripton: 查询用户所拥有的角色名称
     * @date: 16:07 2019/6/20
     */
    List<SysUserRoleVO> listSysUserRole(@Param("ew")QueryWrapper queryWrapper);
}
